package com.hu.zhcc.shiro.controller.dingming;

import com.hu.zhcc.shiro.entity.dingming.THealthPlanType;
import com.hu.zhcc.shiro.service.dingming.THealthPlanTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/healthPlanType")
public class THealthPlanTypeController {
    @Autowired
    private THealthPlanTypeService tHealthPlanTypeService;

    @GetMapping("")
    public ResponseEntity<List<THealthPlanType>> selectTypeList() {
        List<THealthPlanType> tMealsTypes = tHealthPlanTypeService.selectTypeList();
        return ResponseEntity.ok(tMealsTypes);
    }
}
